package com.mezz.bones.im.common.message.base;

import com.mezz.bones.im.common.enums.DeviceEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("消息请求头")
public class MessageHeader {

    @ApiModelProperty("消息类型")
    private String actionCode;

    /**
     * 请求链路ID
     */
    @ApiModelProperty("请求链路ID")
    private String traceId;

    @ApiModelProperty("客户端时间戳-毫秒")
    private Long timestamp;

    /**
     * @see DeviceEnum
     */
    @ApiModelProperty("客户端设备类型")
    private String deviceType;

    @ApiModelProperty("客户端设备号信息")
    private String imei;

    @ApiModelProperty("用户token")
    private String token;

    @ApiModelProperty("是否需要ack回应 默认false")
    private Boolean ack;
}
